package com.example.spinning.bean;

//成品质量信息

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;
import java.sql.Timestamp;

@Table(name = "end_product_quality")
public class EndProductQuality {
    /**
     * 品名：该批纱线的名称。
     * 批号：该批纱线的编号。
     * 日期：检测日期。
     * 单纱捻度（T/m）：单根纱线的捻度。
     * 单纱回潮（%）：单根纱线的回潮率。
     * 双纱捻度（T/m）：双股线加捻捻度指标。
     * 单纱强力（CN）：单根纱线断裂强力。
     * 单纱伸长率（%）：单根纱线的断裂伸长率。
     * 单纱条干CV值：单根纱线条干变化指标。
     * 双纱强力（CN）：双股线断裂强力。
     * 双纱伸长率（%）：双股线断裂时的伸长率。
     * 成品支数（NM）：成品纱线细度指标。
     * 成品回潮（%）：成品纱线的回潮率。
     */
    @Id
    private Long id;//每批纱线拥有的编号
    @Column
    private String batch_no;//该批原料所要生产的纱线的编号
    @Column
    private String name;//该批原料的名称
    @Column
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date date;//检测日期
    @Column
    private Long single_yarn_twist;//单纱捻度（T/m）：单根纱线的捻度。
    @Column
    private Float single_yarn_reversion;//单纱回潮（%）：单根纱线的回潮率。
    @Column
    private Long double_yarn_twist;//双纱捻度（T/m）：双股线加捻捻度指标。
    @Column
    private Long single_yarn_force;//单纱强力（CN）：单根纱线断裂强力。
    @Column
    private Float single_yarn_extensibility;//单纱伸长率（%）：单根纱线的断裂伸长率。
    @Column
    private Float single_yarn_cv;//单纱条干CV值：单根纱线条干变化指标。
    @Column
    private Long double_yarn_force;//双纱强力（CN）：双股线断裂强力。
    @Column
    private Float double_yarn_extensibility;//双纱伸长率（%）：双股线断裂时的伸长率。
    @Column
    private Float end_product_num;//成品支数（NM）：成品纱线细度指标。
    @Column
    private Float end_product_reversion;//成品回潮（%）：成品纱线的回潮率。

    @Column
    private String remarks;//备注栏


    public EndProductQuality() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBatch_no() {
        return batch_no;
    }

    public void setBatch_no(String batch_no) {
        this.batch_no = batch_no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Long getSingle_yarn_twist() {
        return single_yarn_twist;
    }

    public void setSingle_yarn_twist(Long single_yarn_twist) {
        this.single_yarn_twist = single_yarn_twist;
    }

    public Float getSingle_yarn_reversion() {
        return single_yarn_reversion;
    }

    public void setSingle_yarn_reversion(Float single_yarn_reversion) {
        this.single_yarn_reversion = single_yarn_reversion;
    }

    public Long getDouble_yarn_twist() {
        return double_yarn_twist;
    }

    public void setDouble_yarn_twist(Long double_yarn_twist) {
        this.double_yarn_twist = double_yarn_twist;
    }

    public Long getSingle_yarn_force() {
        return single_yarn_force;
    }

    public void setSingle_yarn_force(Long single_yarn_force) {
        this.single_yarn_force = single_yarn_force;
    }

    public Float getSingle_yarn_extensibility() {
        return single_yarn_extensibility;
    }

    public void setSingle_yarn_extensibility(Float single_yarn_extensibility) {
        this.single_yarn_extensibility = single_yarn_extensibility;
    }

    public Float getSingle_yarn_cv() {
        return single_yarn_cv;
    }

    public void setSingle_yarn_cv(Float signle_yarn_cv) {
        this.single_yarn_cv = signle_yarn_cv;
    }

    public Long getDouble_yarn_force() {
        return double_yarn_force;
    }

    public void setDouble_yarn_force(Long double_yarn_force) {
        this.double_yarn_force = double_yarn_force;
    }

    public Float getDouble_yarn_extensibility() {
        return double_yarn_extensibility;
    }

    public void setDouble_yarn_extensibility(Float double_yarn_extensibility) {
        this.double_yarn_extensibility = double_yarn_extensibility;
    }

    public Float getEnd_product_num() {
        return end_product_num;
    }

    public void setEnd_product_num(Float end_product_num) {
        this.end_product_num = end_product_num;
    }

    public Float getEnd_product_reversion() {
        return end_product_reversion;
    }

    public void setEnd_product_reversion(Float end_product_reversion) {
        this.end_product_reversion = end_product_reversion;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
